home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / wired movies and sprites / watchme / watchme.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  1.3 KB  |  49 lines

  1. //////////
  2. //
  3. //    File:        WatchMe.h
  4. //
  5. //    Contains:    Application-specific code for WatchMe shell.
  6. //                This file is used for BOTH MacOS and Windows.
  7. //
  8. //    Written by:    Tim Monroe
  9. //
  10. //    Copyright:    © 1998 by Apple Computer, Inc., all rights reserved.
  11. //
  12. //    Change History (most recent first):
  13. //
  14. //       <1>         07/23/98    rtm        first file
  15. //       
  16. //////////
  17.  
  18. #include "ComApplication.h"
  19. #include <Processes.h>
  20. #include <stdlib.h>
  21.  
  22. // compiler flags
  23.  
  24. #define TESTING_ON_NONCD        0
  25.  
  26. // constants
  27.  
  28. #ifndef MAX_PATH
  29. #define MAX_PATH                512                    // maximum size of a path name
  30. #endif
  31.  
  32. #define kWM_URLSeparator        (char)'/'            // URL path separator
  33.  
  34. #if TARGET_OS_MAC
  35. #define kWM_PathSeparator        (char)':'            // on Macintosh, the path separator is ':'
  36. #elif TARGET_OS_WIN32
  37. #define kWM_PathSeparator        (char)'\\'            // on Windows, the path separator is '\\'
  38. #endif
  39.  
  40. // function prototypes
  41.  
  42. void                            WatchMe_ConvertRelativeToAbsoluteURL (Handle theURLHandle, long theRefCon);
  43. char *                            WatchMe_GetLaunchVolumeName (void);
  44. static char *                    WatchMe_FSSpecToFullPath (const FSSpec *theFSSpec);
  45. static char *                    WatchMe_FullPathToURL(char *thePath);
  46. static char *                    WatchMe_EncodeURL (char *theURL);
  47. static Boolean                    WatchMe_IsAbsoluteURL (char *theURL);
  48. static OSErr                    WatchMe_FSpGetFullPath (const FSSpec *spec, short *fullPathLength, Handle *fullPath);
  49.